package com.libc.yygh.hosp.repository;

import com.libc.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * *
 * Created with Description:
 *
 * @fileRelativePath: HospitalRepository.java
 * @Date: Created on 2022/4/7  14:25  <br>
 * @author: LiBencheng <br>
 * @version: 1.0 <br>
 */
@Repository
public interface HospitalRepository extends MongoRepository< Hospital,String >
{
    //判断是否存在数据
    Hospital getHospitalByHoscode(String hoscode);

    //根据医院名称查询
    List< Hospital > findHospitalByHosnameLike(String hosname);
}
